package cn.itsource.fallback;

import cn.itsource.domain.User;
import cn.itsource.feignclients.MyFeignClient;
import org.springframework.stereotype.Component;

@Component
public class MyFeignClientFallback implements MyFeignClient{
    @Override
    public User getUserById(Long id) {
        return new User(-1L,"无此用户","用户服务无法访问");
    }
}
